import Vue from 'vue'
import Router from 'vue-router'
import NotFound from "../views/404.vue"
import IndexLayout from '../views/index.vue'
import HomeComponent from "../views/home.vue"       // 首页
import KruuEVComponent from "../views/mode/kruu-ev"
import KrujEVComponent from "../views/mode/kruj-ev"
import K60EVComponent from "../views/mode/k60-ev"
import MfpkComponent from "../views/mode/mfpk"
import MfxsComponent from "../views/mode/mfxs"
import CompanyProfileComponent from "../views/about-us/companyProfile"
import ContactUsComponent from "../views/about-us/contactUs"
import CorporateCultureComponent from "../views/about-us/corporateCulture"
import ChengPeiComponent from "../views/business/chengpei"
import JoinComponent from "../views/cooperate/join"
import CompantNewsComponent from "../views/dynamics/Company-news"
import InformationComponent from "../views/dynamics/information"
import PolicyComponent from "../views/dynamics/policy"
import AdvertiseComponent from "../views/about/advertise"
import NetWorkComponent from "../views/cooperate/network"
import TenancyComponent from "../views/sale/tenancy"
import FullPaymentComponent from "../views/sale/fullpayment"
import RantSaleComponent from "../views/sale/rant-sale"
import NavComponent from "../views/nav"
import TeamIntroduceComponent from "../views/about/teamintroduce"
import DetailComponent from "../views/dynamics/detail"
Vue.use(Router);
let routes = [
  {path: '*', redirect: {path: '/home'}},
  {
    path: '/home', name: '', component: IndexLayout,
    children: [
      {path: '', component: HomeComponent, name: '首页'}
    ]
  },
  {path: "/kruu-ev", name: "kruu-ev", component: KruuEVComponent},
  {path: "/kruj-ev", name: "kruj-ev", component: KrujEVComponent},
  {path: "/k60-ev", name: "k60-ev", component: K60EVComponent},
  {path: "/mfpk", name: "mfpk", component: MfpkComponent},
  {path: "/mfxs", name: "mfxs", component: MfxsComponent},
  {path: "/gsjs", name: "gsjs", component: CompanyProfileComponent},
  {path: "/contact-us", name: "contact-us", component: ContactUsComponent},
  {path: "/corporate-culture", name: "corporate-culture", component: CorporateCultureComponent},
  {path: "/chengpei", name: "chengpei", component: ChengPeiComponent},
  {path: "/join", name: "join", component: JoinComponent},
  {path: "/company-news", name: "companyNews", component: CompantNewsComponent},
  {path: "/information", name: "information", component: InformationComponent},
  {path: "/policy", name: "policy", component: PolicyComponent},
  {path: '/404', name: '404', component: NotFound},
  {path: "/advertise", name: "advertise", component: AdvertiseComponent},
  {path: "/network", name: "network", component: NetWorkComponent},
  {path: "/tenancy", name: "tenancy", component: TenancyComponent},
  {path: "/fullpayment", name: "fullpayment", component: FullPaymentComponent},
  {path: "/rantsale", name: "rantsale", component: RantSaleComponent},
  {path: "/nav", name: "nav", component: NavComponent},
  {path: "/teamintroduce", name: "teamintroduce", component: TeamIntroduceComponent},
  {path:"/detail",name:"detail",component:DetailComponent},
  {path: "/404", name: "Notfound", component: NotFound}
];

export default new Router({
  mode: 'hash',
  routes: routes
})
